<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">
    <h:form id="frmLogin"  >
        <!-- Băt đầu Login -->
        <p:dialog resizable="false" 
                  header="System Login"
                  id="dlgLogin"
                  widgetVar="wgLogin"
                  draggable="true"
                  visible="true"
                  modal="true"
                  showEffect="clip"
                  hideEffect="clip"
                  closable="false"
                  >


            <h:panelGrid columns="2" cellpadding="5" >


                <h:outputLabel for="username" value="Username:" />
                <h:inputText value="#{userBean.username}"
                             id="username" required="true" label="username"  />
                <h:outputLabel for="password" value="Password:" />
                <h:inputSecret value="#{userBean.password}"
                               id="password" required="true" label="password" />


            </h:panelGrid>
            <f:facet name="footer">
                <p:commandButton id="loginButton"
                                 value="Login"
                                 actionListener="#{userBean.Login}"
                                 oncomplete="LoginRequest(xhr, status, args)"
                                 update=":growl,
                                 :frmMyprofile:dlgMyProfile,
                                 :toolbar,
                                 :frmViewFeedBack:dtViewFeedBack,
                                 :frmViewFeedBack:ctMenuFeedBack,
                                 :frmCreateRegisterCode,
                                 :frmViewEmployee:dlgViewEmployee,
                                 :frmViewClaim:ctViewClaim,
                                 :frmViewClaim:dtViewClaim,
                                 :frmViewHospital:dlgViewHospital,
                                 :frmCreateCalim,
                                 :frmCreatePayment,
                                 :frmViewCodeRegister,
                                 :frmManagerRss:dtManagerRss
                                 "
                                 style="width: 100px" />
                <p:commandButton id="btnResgister"
                                 value="Resgister"
                                 style="width: 100px"

                                 onclick="wgLogin.hide();wgRegister.show();"  />
                <p:commandButton id="btnLostPassword"
                                 value="Lost Password"

                                 onclick="wgLogin.hide();
                                             wgLostPassword.show();"
                                 style="width: 120px" />


            </f:facet>
        </p:dialog>

    </h:form>
    <!-- frmResgister -->
    <!-- wgResgisterUser -->
    
</html>
